package juc.demo01;

public class JVM {
    public static void main(String[] args) {
        System.out.println(Runtime.getRuntime().availableProcessors());
        long l = Runtime.getRuntime().maxMemory();
        long l1 = Runtime.getRuntime().totalMemory();
        System.out.println("最大:" + (l / (double) 1024 / 1024));
        System.out.println("默认:" + (l1 / (double) 1024 / 1024));


    }
}
